.class public Lcom/xingbook/park/ui/ba;
.super Lcom/xingbook/park/ui/bd;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private d:[Landroid/widget/RelativeLayout;

.field private e:[Landroid/widget/ImageView;

.field private f:[Landroid/widget/TextView;

.field private g:[Landroid/widget/TextView;

.field private h:[Landroid/view/View;

.field private i:Lcom/xingbook/park/b/e;

.field private j:Lcom/xingbook/ting/receiver/PlayerStateReceiver;

.field private k:Lcom/xingbook/ting/receiver/TingRetrieverReceiver;


# direct methods
.method public constructor <init>(Landroid/content/Context;FLcom/xingbook/park/ui/be;)V
    .locals 1

    const/4 v0, 0x0

    invoke-direct {p0, p1, p2, p3}, Lcom/xingbook/park/ui/bd;-><init>(Landroid/content/Context;FLcom/xingbook/park/ui/be;)V

    iput-object v0, p0, Lcom/xingbook/park/ui/ba;->j:Lcom/xingbook/ting/receiver/PlayerStateReceiver;

    iput-object v0, p0, Lcom/xingbook/park/ui/ba;->k:Lcom/xingbook/ting/receiver/TingRetrieverReceiver;

    return-void
.end method

.method static synthetic a(Lcom/xingbook/park/ui/ba;)[Landroid/widget/RelativeLayout;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/ui/ba;->d:[Landroid/widget/RelativeLayout;

    return-object v0
.end method

.method static synthetic b(Lcom/xingbook/park/ui/ba;)[Landroid/view/View;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/ui/ba;->h:[Landroid/view/View;

    return-object v0
.end method

.method private c()V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/park/ui/ba;->j:Lcom/xingbook/ting/receiver/PlayerStateReceiver;

    if-nez v0, :cond_0

    new-instance v0, Lcom/xingbook/ting/receiver/PlayerStateReceiver;

    new-instance v1, Lcom/xingbook/park/ui/bb;

    invoke-direct {v1, p0}, Lcom/xingbook/park/ui/bb;-><init>(Lcom/xingbook/park/ui/ba;)V

    invoke-direct {v0, v1}, Lcom/xingbook/ting/receiver/PlayerStateReceiver;-><init>(Lcom/xingbook/ting/receiver/b;)V

    iput-object v0, p0, Lcom/xingbook/park/ui/ba;->j:Lcom/xingbook/ting/receiver/PlayerStateReceiver;

    :cond_0
    iget-object v0, p0, Lcom/xingbook/park/ui/ba;->j:Lcom/xingbook/ting/receiver/PlayerStateReceiver;

    invoke-virtual {p0}, Lcom/xingbook/park/ui/ba;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/xingbook/ting/receiver/PlayerStateReceiver;->a(Landroid/content/Context;)V

    new-instance v0, Lcom/xingbook/ting/receiver/TingRetrieverReceiver;

    new-instance v1, Lcom/xingbook/park/ui/bc;

    invoke-direct {v1, p0}, Lcom/xingbook/park/ui/bc;-><init>(Lcom/xingbook/park/ui/ba;)V

    invoke-direct {v0, v1}, Lcom/xingbook/ting/receiver/TingRetrieverReceiver;-><init>(Lcom/xingbook/ting/receiver/d;)V

    iput-object v0, p0, Lcom/xingbook/park/ui/ba;->k:Lcom/xingbook/ting/receiver/TingRetrieverReceiver;

    iget-object v0, p0, Lcom/xingbook/park/ui/ba;->k:Lcom/xingbook/ting/receiver/TingRetrieverReceiver;

    invoke-virtual {p0}, Lcom/xingbook/park/ui/ba;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/xingbook/ting/receiver/TingRetrieverReceiver;->a(Landroid/content/Context;)V

    return-void
.end method


# virtual methods
.method public a()V
    .locals 17
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "NewApi"
        }
    .end annotation

    invoke-virtual/range {p0 .. p0}, Lcom/xingbook/park/ui/ba;->getContext()Landroid/content/Context;

    move-result-object v3

    new-instance v1, Landroid/widget/RelativeLayout;

    invoke-virtual/range {p0 .. p0}, Lcom/xingbook/park/ui/ba;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-direct {v1, v2}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    move-object/from16 v0, p0

    iput-object v1, v0, Lcom/xingbook/park/ui/ba;->c:Landroid/widget/RelativeLayout;

    const/4 v1, 0x3

    new-array v1, v1, [Landroid/widget/RelativeLayout;

    move-object/from16 v0, p0

    iput-object v1, v0, Lcom/xingbook/park/ui/ba;->d:[Landroid/widget/RelativeLayout;

    const/4 v1, 0x3

    new-array v1, v1, [Landroid/widget/ImageView;

    move-object/from16 v0, p0

    iput-object v1, v0, Lcom/xingbook/park/ui/ba;->e:[Landroid/widget/ImageView;

    const/4 v1, 0x3

    new-array v1, v1, [Landroid/widget/TextView;

    move-object/from16 v0, p0

    iput-object v1, v0, Lcom/xingbook/park/ui/ba;->f:[Landroid/widget/TextView;

    const/4 v1, 0x3

    new-array v1, v1, [Landroid/widget/TextView;

    move-object/from16 v0, p0

    iput-object v1, v0, Lcom/xingbook/park/ui/ba;->g:[Landroid/widget/TextView;

    const/4 v1, 0x3

    new-array v1, v1, [Landroid/view/View;

    move-object/from16 v0, p0

    iput-object v1, v0, Lcom/xingbook/park/ui/ba;->h:[Landroid/view/View;

    const/4 v2, 0x0

    const/high16 v1, 0x4374

    move-object/from16 v0, p0

    iget v4, v0, Lcom/xingbook/park/ui/ba;->a:F

    mul-float/2addr v1, v4

    float-to-int v4, v1

    const/4 v5, -0x1

    const/high16 v1, 0x4323

    move-object/from16 v0, p0

    iget v6, v0, Lcom/xingbook/park/ui/ba;->a:F

    mul-float/2addr v1, v6

    float-to-int v6, v1

    const/high16 v1, 0x4238

    move-object/from16 v0, p0

    iget v7, v0, Lcom/xingbook/park/ui/ba;->a:F

    mul-float/2addr v1, v7

    float-to-int v7, v1

    const/high16 v1, 0x4370

    move-object/from16 v0, p0

    iget v8, v0, Lcom/xingbook/park/ui/ba;->a:F

    mul-float/2addr v1, v8

    float-to-int v8, v1

    const/high16 v1, 0x43a9

    move-object/from16 v0, p0

    iget v9, v0, Lcom/xingbook/park/ui/ba;->a:F

    mul-float/2addr v1, v9

    float-to-int v9, v1

    const/high16 v1, 0x41e0

    move-object/from16 v0, p0

    iget v10, v0, Lcom/xingbook/park/ui/ba;->a:F

    mul-float/2addr v1, v10

    float-to-int v1, v1

    const/high16 v10, 0x4264

    move-object/from16 v0, p0

    iget v11, v0, Lcom/xingbook/park/ui/ba;->a:F

    mul-float/2addr v10, v11

    float-to-int v10, v10

    const/high16 v11, 0x42c6

    move-object/from16 v0, p0

    iget v12, v0, Lcom/xingbook/park/ui/ba;->a:F

    mul-float/2addr v11, v12

    float-to-int v11, v11

    invoke-virtual {v3}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v12

    const v13, 0x7f0202b5

    invoke-virtual {v12, v13}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v12

    const/4 v13, 0x0

    const/4 v14, 0x0

    invoke-virtual {v12, v13, v14, v1, v1}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V

    const/4 v1, 0x0

    :goto_0
    const/4 v13, 0x3

    if-lt v1, v13, :cond_0

    const/high16 v1, 0x42b8

    move-object/from16 v0, p0

    iget v2, v0, Lcom/xingbook/park/ui/ba;->a:F

    mul-float/2addr v1, v2

    float-to-int v1, v1

    const/high16 v2, 0x4437

    move-object/from16 v0, p0

    iget v3, v0, Lcom/xingbook/park/ui/ba;->a:F

    mul-float/2addr v2, v3

    float-to-int v2, v2

    const/high16 v3, 0x43cc

    move-object/from16 v0, p0

    iget v4, v0, Lcom/xingbook/park/ui/ba;->a:F

    mul-float/2addr v3, v4

    float-to-int v3, v3

    new-instance v4, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v4, v2, v3}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    iput v1, v4, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    const/16 v1, 0xe

    invoke-virtual {v4, v1}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/xingbook/park/ui/ba;->c:Landroid/widget/RelativeLayout;

    invoke-virtual {v1, v4}, Landroid/widget/RelativeLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/xingbook/park/ui/ba;->c:Landroid/widget/RelativeLayout;

    move-object/from16 v0, p0

    invoke-virtual {v0, v1}, Lcom/xingbook/park/ui/ba;->addView(Landroid/view/View;)V

    sget v1, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v2, 0x10

    if-lt v1, v2, :cond_1

    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/xingbook/park/ui/ba;->c:Landroid/widget/RelativeLayout;

    invoke-virtual/range {p0 .. p0}, Lcom/xingbook/park/ui/ba;->getBorderWidth()I

    move-result v2

    const v3, -0x333334

    const/high16 v4, 0x41c8

    move-object/from16 v0, p0

    iget v5, v0, Lcom/xingbook/park/ui/ba;->a:F

    mul-float/2addr v4, v5

    float-to-int v4, v4

    const/4 v5, -0x1

    invoke-static {v2, v3, v4, v5}, Lcom/xingbook/park/ui/aa;->a(IIII)Landroid/graphics/drawable/GradientDrawable;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/RelativeLayout;->setBackground(Landroid/graphics/drawable/Drawable;)V

    :goto_1
    return-void

    :cond_0
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/xingbook/park/ui/ba;->d:[Landroid/widget/RelativeLayout;

    new-instance v14, Landroid/widget/RelativeLayout;

    invoke-direct {v14, v3}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    aput-object v14, v13, v1

    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/xingbook/park/ui/ba;->d:[Landroid/widget/RelativeLayout;

    aget-object v13, v13, v1

    move-object/from16 v0, p0

    invoke-virtual {v13, v0}, Landroid/widget/RelativeLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    new-instance v13, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v13, v4, v5}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    iput v2, v13, Landroid/widget/RelativeLayout$LayoutParams;->leftMargin:I

    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/xingbook/park/ui/ba;->d:[Landroid/widget/RelativeLayout;

    aget-object v14, v14, v1

    invoke-virtual {v14, v13}, Landroid/widget/RelativeLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/xingbook/park/ui/ba;->c:Landroid/widget/RelativeLayout;

    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/xingbook/park/ui/ba;->d:[Landroid/widget/RelativeLayout;

    aget-object v14, v14, v1

    invoke-virtual {v13, v14}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/xingbook/park/ui/ba;->e:[Landroid/widget/ImageView;

    new-instance v14, Landroid/widget/ImageView;

    invoke-direct {v14, v3}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    aput-object v14, v13, v1

    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/xingbook/park/ui/ba;->e:[Landroid/widget/ImageView;

    aget-object v13, v13, v1

    sget-object v14, Landroid/widget/ImageView$ScaleType;->FIT_XY:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v13, v14}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/xingbook/park/ui/ba;->e:[Landroid/widget/ImageView;

    aget-object v13, v13, v1

    const v14, -0x333334

    invoke-virtual {v13, v14}, Landroid/widget/ImageView;->setBackgroundColor(I)V

    new-instance v13, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v13, v6, v6}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v14, 0xe

    invoke-virtual {v13, v14}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    iput v7, v13, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/xingbook/park/ui/ba;->e:[Landroid/widget/ImageView;

    aget-object v14, v14, v1

    invoke-virtual {v14, v13}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/xingbook/park/ui/ba;->d:[Landroid/widget/RelativeLayout;

    aget-object v13, v13, v1

    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/xingbook/park/ui/ba;->e:[Landroid/widget/ImageView;

    aget-object v14, v14, v1

    invoke-virtual {v13, v14}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/xingbook/park/ui/ba;->h:[Landroid/view/View;

    new-instance v14, Landroid/view/View;

    invoke-direct {v14, v3}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    aput-object v14, v13, v1

    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/xingbook/park/ui/ba;->h:[Landroid/view/View;

    aget-object v13, v13, v1

    const v14, 0x7f0202af

    invoke-virtual {v13, v14}, Landroid/view/View;->setBackgroundResource(I)V

    new-instance v13, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v13, v10, v10}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v14, 0xe

    invoke-virtual {v13, v14}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    iput v11, v13, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/xingbook/park/ui/ba;->h:[Landroid/view/View;

    aget-object v14, v14, v1

    invoke-virtual {v14, v13}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/xingbook/park/ui/ba;->d:[Landroid/widget/RelativeLayout;

    aget-object v13, v13, v1

    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/xingbook/park/ui/ba;->h:[Landroid/view/View;

    aget-object v14, v14, v1

    invoke-virtual {v13, v14}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/xingbook/park/ui/ba;->f:[Landroid/widget/TextView;

    new-instance v14, Landroid/widget/TextView;

    invoke-direct {v14, v3}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    aput-object v14, v13, v1

    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/xingbook/park/ui/ba;->f:[Landroid/widget/TextView;

    aget-object v13, v13, v1

    const v14, -0xcccccd

    invoke-virtual {v13, v14}, Landroid/widget/TextView;->setTextColor(I)V

    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/xingbook/park/ui/ba;->f:[Landroid/widget/TextView;

    aget-object v13, v13, v1

    const/4 v14, 0x0

    const v15, 0x41f9999a

    move-object/from16 v0, p0

    iget v0, v0, Lcom/xingbook/park/ui/ba;->a:F

    move/from16 v16, v0

    mul-float v15, v15, v16

    invoke-virtual {v13, v14, v15}, Landroid/widget/TextView;->setTextSize(IF)V

    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/xingbook/park/ui/ba;->f:[Landroid/widget/TextView;

    aget-object v13, v13, v1

    const/16 v14, 0x11

    invoke-virtual {v13, v14}, Landroid/widget/TextView;->setGravity(I)V

    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/xingbook/park/ui/ba;->f:[Landroid/widget/TextView;

    aget-object v13, v13, v1

    const/4 v14, 0x2

    invoke-virtual {v13, v14}, Landroid/widget/TextView;->setMaxLines(I)V

    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/xingbook/park/ui/ba;->f:[Landroid/widget/TextView;

    aget-object v13, v13, v1

    sget-object v14, Landroid/text/TextUtils$TruncateAt;->END:Landroid/text/TextUtils$TruncateAt;

    invoke-virtual {v13, v14}, Landroid/widget/TextView;->setEllipsize(Landroid/text/TextUtils$TruncateAt;)V

    new-instance v13, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v14, -0x2

    invoke-direct {v13, v6, v14}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v14, 0xe

    invoke-virtual {v13, v14}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    iput v8, v13, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/xingbook/park/ui/ba;->f:[Landroid/widget/TextView;

    aget-object v14, v14, v1

    invoke-virtual {v14, v13}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/xingbook/park/ui/ba;->d:[Landroid/widget/RelativeLayout;

    aget-object v13, v13, v1

    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/xingbook/park/ui/ba;->f:[Landroid/widget/TextView;

    aget-object v14, v14, v1

    invoke-virtual {v13, v14}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/xingbook/park/ui/ba;->g:[Landroid/widget/TextView;

    new-instance v14, Landroid/widget/TextView;

    invoke-direct {v14, v3}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    aput-object v14, v13, v1

    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/xingbook/park/ui/ba;->g:[Landroid/widget/TextView;

    aget-object v13, v13, v1

    const v14, -0x666667

    invoke-virtual {v13, v14}, Landroid/widget/TextView;->setTextColor(I)V

    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/xingbook/park/ui/ba;->g:[Landroid/widget/TextView;

    aget-object v13, v13, v1

    const/4 v14, 0x0

    const v15, 0x41dccccd

    move-object/from16 v0, p0

    iget v0, v0, Lcom/xingbook/park/ui/ba;->a:F

    move/from16 v16, v0

    mul-float v15, v15, v16

    invoke-virtual {v13, v14, v15}, Landroid/widget/TextView;->setTextSize(IF)V

    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/xingbook/park/ui/ba;->g:[Landroid/widget/TextView;

    aget-object v13, v13, v1

    const/high16 v14, 0x40a0

    move-object/from16 v0, p0

    iget v15, v0, Lcom/xingbook/park/ui/ba;->a:F

    mul-float/2addr v14, v15

    float-to-int v14, v14

    invoke-virtual {v13, v14}, Landroid/widget/TextView;->setCompoundDrawablePadding(I)V

    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/xingbook/park/ui/ba;->g:[Landroid/widget/TextView;

    aget-object v13, v13, v1

    const/4 v14, 0x0

    const/4 v15, 0x0

    const/16 v16, 0x0

    move-object/from16 v0, v16

    invoke-virtual {v13, v12, v14, v15, v0}, Landroid/widget/TextView;->setCompoundDrawables(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V

    new-instance v13, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v14, -0x2

    const/4 v15, -0x2

    invoke-direct {v13, v14, v15}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v14, 0xe

    invoke-virtual {v13, v14}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    iput v9, v13, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/xingbook/park/ui/ba;->g:[Landroid/widget/TextView;

    aget-object v14, v14, v1

    invoke-virtual {v14, v13}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/xingbook/park/ui/ba;->d:[Landroid/widget/RelativeLayout;

    aget-object v13, v13, v1

    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/xingbook/park/ui/ba;->g:[Landroid/widget/TextView;

    aget-object v14, v14, v1

    invoke-virtual {v13, v14}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    add-int/2addr v2, v4

    add-int/lit8 v1, v1, 0x1

    goto/16 :goto_0

    :cond_1
    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/xingbook/park/ui/ba;->c:Landroid/widget/RelativeLayout;

    invoke-virtual/range {p0 .. p0}, Lcom/xingbook/park/ui/ba;->getBorderWidth()I

    move-result v2

    const v3, -0x333334

    const/high16 v4, 0x41c8

    move-object/from16 v0, p0

    iget v5, v0, Lcom/xingbook/park/ui/ba;->a:F

    mul-float/2addr v4, v5

    float-to-int v4, v4

    const/4 v5, -0x1

    invoke-static {v2, v3, v4, v5}, Lcom/xingbook/park/ui/aa;->a(IIII)Landroid/graphics/drawable/GradientDrawable;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/RelativeLayout;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    goto/16 :goto_1
.end method

.method public a(Lcom/xingbook/audio/b/b;)V
    .locals 7

    const/4 v3, 0x0

    invoke-virtual {p1}, Lcom/xingbook/audio/b/b;->Y()I

    move-result v0

    new-instance v4, Lcom/xingbook/audio/b/a;

    invoke-direct {v4, v0}, Lcom/xingbook/audio/b/a;-><init>(I)V

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "CCCCCCCCCCCCCCCCCCC"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v4, v0}, Lcom/xingbook/audio/b/a;->a(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/ba;->i:Lcom/xingbook/park/b/e;

    invoke-virtual {v0}, Lcom/xingbook/park/b/e;->g()Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v5

    move v1, v3

    move v2, v3

    :goto_0
    if-lt v1, v5, :cond_0

    const-string v0, "\u4eca\u65e5\u63a8\u8350"

    invoke-virtual {v4, v0}, Lcom/xingbook/audio/b/a;->b(Ljava/lang/String;)V

    invoke-virtual {p0}, Lcom/xingbook/park/ui/ba;->getContext()Landroid/content/Context;

    move-result-object v0

    const-string v1, "\u5373\u5c06\u64ad\u653e\uff0c\u8bf7\u7a0d\u5019\u00b7\u00b7\u00b7"

    invoke-static {v0, v1, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    invoke-virtual {p0}, Lcom/xingbook/park/ui/ba;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v4, v2, v0, v3, v3}, Lcom/xingbook/ting/activity/TingPlayAct;->b(Lcom/xingbook/audio/b/a;ILandroid/content/Context;ZZ)V

    return-void

    :cond_0
    iget-object v0, p0, Lcom/xingbook/park/ui/ba;->i:Lcom/xingbook/park/b/e;

    invoke-virtual {v0}, Lcom/xingbook/park/b/e;->g()Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/audio/b/b;

    invoke-virtual {v4, v0}, Lcom/xingbook/audio/b/a;->a(Ljava/lang/Object;)V

    invoke-virtual {p1}, Lcom/xingbook/audio/b/b;->t()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_1

    invoke-virtual {p1}, Lcom/xingbook/audio/b/b;->t()Ljava/lang/String;

    move-result-object v6

    iget-object v0, p0, Lcom/xingbook/park/ui/ba;->i:Lcom/xingbook/park/b/e;

    invoke-virtual {v0}, Lcom/xingbook/park/b/e;->g()Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/b/n;

    invoke-virtual {v0}, Lcom/xingbook/b/n;->t()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v6, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    move v0, v1

    :goto_1
    add-int/lit8 v1, v1, 0x1

    move v2, v0

    goto :goto_0

    :cond_1
    move v0, v2

    goto :goto_1
.end method

.method public a(Lcom/xingbook/park/b/e;Z)V
    .locals 11

    const/16 v10, 0x8

    const/4 v9, 0x3

    const/4 v4, 0x1

    const/4 v3, 0x0

    iput-object p1, p0, Lcom/xingbook/park/ui/ba;->i:Lcom/xingbook/park/b/e;

    if-eqz p1, :cond_6

    invoke-virtual {p1}, Lcom/xingbook/park/b/e;->a()I

    move-result v0

    const/16 v1, 0x50

    if-eq v0, v1, :cond_0

    invoke-virtual {p1}, Lcom/xingbook/park/b/e;->a()I

    move-result v0

    const/16 v1, 0x40

    if-ne v0, v1, :cond_6

    :cond_0
    invoke-virtual {p1}, Lcom/xingbook/park/b/e;->g()Ljava/util/ArrayList;

    move-result-object v0

    if-eqz v0, :cond_6

    invoke-virtual {p1}, Lcom/xingbook/park/b/e;->g()Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_6

    invoke-virtual {p0, v3}, Lcom/xingbook/park/ui/ba;->setVisibility(I)V

    invoke-virtual {p1}, Lcom/xingbook/park/b/e;->a()I

    move-result v0

    invoke-virtual {p1}, Lcom/xingbook/park/b/e;->d()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1}, Lcom/xingbook/park/b/e;->e()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p0, v0, v1, v2, p2}, Lcom/xingbook/park/ui/ba;->a(ILjava/lang/String;Ljava/lang/String;Z)V

    invoke-virtual {p1}, Lcom/xingbook/park/b/e;->g()Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v8

    move v7, v3

    :goto_0
    if-lt v7, v9, :cond_2

    invoke-virtual {p0}, Lcom/xingbook/park/ui/ba;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/xingbook/ting/play/j;->a(Landroid/content/Context;)Lcom/xingbook/ting/play/j;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/ting/play/j;->g()Lcom/xingbook/audio/b/b;

    move-result-object v5

    if-nez v5, :cond_4

    :cond_1
    :goto_1
    return-void

    :cond_2
    if-ge v7, v8, :cond_3

    invoke-virtual {p1}, Lcom/xingbook/park/b/e;->g()Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0, v7}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    move-object v6, v0

    check-cast v6, Lcom/xingbook/audio/b/b;

    iget-object v0, p0, Lcom/xingbook/park/ui/ba;->d:[Landroid/widget/RelativeLayout;

    aget-object v0, v0, v7

    invoke-virtual {v0, v3}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/ba;->d:[Landroid/widget/RelativeLayout;

    aget-object v0, v0, v7

    invoke-virtual {p1}, Lcom/xingbook/park/b/e;->g()Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1, v7}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setTag(Ljava/lang/Object;)V

    invoke-virtual {v6, v3}, Lcom/xingbook/audio/b/b;->d(Z)Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/park/ui/ba;->e:[Landroid/widget/ImageView;

    aget-object v1, v1, v7

    const/4 v2, -0x1

    const/4 v5, 0x0

    invoke-static/range {v0 .. v5}, Lcom/xingbook/c/k;->a(Ljava/lang/String;Landroid/widget/ImageView;IZZF)V

    iget-object v0, p0, Lcom/xingbook/park/ui/ba;->f:[Landroid/widget/TextView;

    aget-object v0, v0, v7

    invoke-virtual {v6}, Lcom/xingbook/audio/b/b;->u()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/ba;->g:[Landroid/widget/TextView;

    aget-object v0, v0, v7

    invoke-virtual {v6}, Lcom/xingbook/audio/b/b;->g()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_2
    add-int/lit8 v0, v7, 0x1

    move v7, v0

    goto :goto_0

    :cond_3
    iget-object v0, p0, Lcom/xingbook/park/ui/ba;->d:[Landroid/widget/RelativeLayout;

    aget-object v0, v0, v7

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setTag(Ljava/lang/Object;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/ba;->d:[Landroid/widget/RelativeLayout;

    aget-object v0, v0, v7

    invoke-virtual {v0, v10}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    goto :goto_2

    :cond_4
    move v2, v3

    :goto_3
    if-ge v2, v9, :cond_1

    iget-object v0, p0, Lcom/xingbook/park/ui/ba;->d:[Landroid/widget/RelativeLayout;

    aget-object v0, v0, v2

    invoke-virtual {v0}, Landroid/widget/RelativeLayout;->getTag()Ljava/lang/Object;

    move-result-object v1

    if-eqz v1, :cond_5

    instance-of v0, v1, Lcom/xingbook/audio/b/b;

    if-eqz v0, :cond_5

    move-object v0, v1

    check-cast v0, Lcom/xingbook/audio/b/b;

    invoke-virtual {v0}, Lcom/xingbook/audio/b/b;->t()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_5

    check-cast v1, Lcom/xingbook/audio/b/b;

    invoke-virtual {v1}, Lcom/xingbook/audio/b/b;->t()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v5}, Lcom/xingbook/audio/b/b;->t()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_5

    iget-object v0, p0, Lcom/xingbook/park/ui/ba;->h:[Landroid/view/View;

    aget-object v0, v0, v2

    invoke-virtual {v0, v4}, Landroid/view/View;->setSelected(Z)V

    iget-object v0, p0, Lcom/xingbook/park/ui/ba;->d:[Landroid/widget/RelativeLayout;

    aget-object v0, v0, v2

    invoke-virtual {v0, v4}, Landroid/widget/RelativeLayout;->setSelected(Z)V

    :goto_4
    add-int/lit8 v0, v2, 0x1

    move v2, v0

    goto :goto_3

    :cond_5
    iget-object v0, p0, Lcom/xingbook/park/ui/ba;->h:[Landroid/view/View;

    aget-object v0, v0, v2

    invoke-virtual {v0, v3}, Landroid/view/View;->setSelected(Z)V

    iget-object v0, p0, Lcom/xingbook/park/ui/ba;->d:[Landroid/widget/RelativeLayout;

    aget-object v0, v0, v2

    invoke-virtual {v0, v3}, Landroid/widget/RelativeLayout;->setSelected(Z)V

    goto :goto_4

    :cond_6
    invoke-virtual {p0, v10}, Lcom/xingbook/park/ui/ba;->setVisibility(I)V

    goto/16 :goto_1
.end method

.method public b()V
    .locals 2

    new-instance v0, Landroid/content/Intent;

    const-string v1, "com.111.xingpark.ting.play.musicservice.action.PAUSE"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0}, Lcom/xingbook/park/ui/ba;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/content/Context;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;

    return-void
.end method

.method protected onAttachedToWindow()V
    .locals 0

    invoke-direct {p0}, Lcom/xingbook/park/ui/ba;->c()V

    invoke-super {p0}, Lcom/xingbook/park/ui/bd;->onAttachedToWindow()V

    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/park/ui/ba;->b:Lcom/xingbook/park/ui/be;

    if-eqz v0, :cond_0

    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_0

    instance-of v1, v0, Lcom/xingbook/audio/b/b;

    if-eqz v1, :cond_0

    invoke-virtual {p1}, Landroid/view/View;->isSelected()Z

    move-result v1

    if-eqz v1, :cond_1

    invoke-virtual {p0}, Lcom/xingbook/park/ui/ba;->b()V

    :cond_0
    :goto_0
    return-void

    :cond_1
    check-cast v0, Lcom/xingbook/audio/b/b;

    invoke-virtual {p0, v0}, Lcom/xingbook/park/ui/ba;->a(Lcom/xingbook/audio/b/b;)V

    goto :goto_0
.end method

.method protected onDetachedFromWindow()V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/park/ui/ba;->j:Lcom/xingbook/ting/receiver/PlayerStateReceiver;

    invoke-virtual {p0}, Lcom/xingbook/park/ui/ba;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/xingbook/ting/receiver/PlayerStateReceiver;->b(Landroid/content/Context;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/ba;->k:Lcom/xingbook/ting/receiver/TingRetrieverReceiver;

    invoke-virtual {p0}, Lcom/xingbook/park/ui/ba;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/xingbook/ting/receiver/TingRetrieverReceiver;->b(Landroid/content/Context;)V

    invoke-super {p0}, Lcom/xingbook/park/ui/bd;->onDetachedFromWindow()V

    return-void
.end method
